<%@ taglib prefix="s" uri="/struts-tags"%>

<!-- URL LIST -->
<s:url var="urlLogout" action="logout" />
<s:url var="urlUser" action="su/user" />

<!-- END OF URL LIST -->

<s:property value="#session.userName"/>
<s:property value="nav"/>
<s:property value="subMenu"/>
<div class="navbar">
	<div class="navbar-inner">
		<s:if test="%{#session.userName == 'su'}">
			<a class="brand" href="#"><s:property value="#session.userName" /></a>
			<ul class="nav">
				<li class="divider-vertical"></li>
				<li><s:a href="%{urlUser}">Manage User</s:a></li>
				<li><s:a href="%{urlLogout}">Log Out</s:a></li>
			</ul>
		</s:if>
	</div>
</div>